home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 March
/
Ahoy_Magazine_87-03_1987_Double_L.d64
/
Decomp Demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
33 lines
0 rem *********************************
1 rem ***** decompressor demo *****
2 rem ***** by scott miller petty *****
3 rem ***** 407 b. smith avenue *****
4 rem ***** chapel hill, n.c. *****
5 rem ***** 27514 *****
6 rem ***** (919)-967-8522 *****
7 rem *********************************
10 ifa>0then25
15 poke53280,12:poke53281,15:print"":poke56,126:poke55,244:clr
20 ifa=0thena=1:print"[147]":load"decompressor.o",8,1
25 t$="[151] decompressor demo ":printt$
30 ifa=1thena=2:poke53265,peek(53265)or16:input"filename of picture ";f$
35 input"load address of pic ";la
40 print" [151] hit + key to change border color."
45 print" [151] hit - key to change background color."
50 print" [151] hit any other key to exit hires. ":fori=0to1000:next
55 print" hit run/stop to end [146]"
60 gosub115:gosub100:poke53265,peek(53265)or16:d1=49152:d2=d1+26
65 sysd1,f$,la,52224:r1=peek(249)+256*peek(250)+6
70 sysd2,r1,55296:r2=peek(249)+256*peek(250)+6:sysd2,r2,57344
75 r3=peek(249)+256*peek(250)+6:poke53281,peek(r3+1):poke53280,peek(r3+2)
80 wait198,15:gett$:ift$="+"thenbo=bo+1:ifbo>15thenbo=0
85 ift$="-"thenbg=bg+1:ifbg>15thenbg=0
90 ift$="+"ort$="-"thenpoke53281,bg:poke53280,bo:goto80
95 gosub115:wait198,15:gett$:gosub100:goto80
100 rem ******* change banks *********
105 poke53272,56:poke53265,peek(53265)or32:poke53270,peek(53270)or16
110 poke56578,peek(56578)or3:poke56576,(peek(56576)and252)or0:return
115 rem ****** normal screen ********
120 poke53272,21:poke53265,peek(53265)and223:poke53270,peek(53270)and239
125 poke56578,peek(56578)or3:poke56576,(peek(56576)and252)or3:return